home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ IC SDK 1.01 / Sample Code / QTICSampleApp / Sources / about.c next >
Encoding:
Text File  |  1997-06-06  |  1.4 KB  |  45 lines  |  [TEXT/CWIE]

  1. //========================================================================
  2. // Application:        QTICSampleApp
  3. //
  4. // Description:        This application demonstrates the integration of
  5. //                    QuickTime™ IC functionality.
  6. //
  7. // Author:            Mike Bitz
  8. //                     Developer Technical Support
  9. //                     Apple Computer, Inc.
  10. //
  11. // History:            25-Apr-97 original development (mwb)
  12. //
  13. // Copyright © 1997 Apple Computer, Inc., All Rights Reserved
  14. //
  15. // You may incorporate this sample code into your applications without
  16. // restriction, though the sample code has been provided "AS IS" and the
  17. // responsibility for its operation is 100% yours.  However, what you are
  18. // not permitted to do is to redistribute the source as "DSC Sample Code"
  19. // after having made changes. If you're going to re-distribute the source,
  20. // we require that you make it clear in the source that the code was
  21. // descended from Apple Sample Code, but that you've made changes.
  22. //========================================================================
  23.  
  24. #include "prototypes.h"
  25. #include "application.h"
  26.  
  27. //================= HandleMyAboutBox =================
  28. void HandleMyAboutBox(void)
  29. {
  30.     ModalFilterUPP         theProc ;
  31.     DialogPtr            theDialog ; 
  32.     short                itemHit ;
  33.  
  34.     theDialog = GetNewDialog (kBaseResID, nil, (WindowPtr)-1);
  35.     
  36.     GetStdFilterProc (&theProc);
  37.     SetDialogDefaultItem (theDialog, ok);
  38.     
  39.     do 
  40.     {
  41.         ModalDialog (theProc, &itemHit);
  42.     } while (itemHit != ok) ;
  43.     
  44.     DisposDialog (theDialog);
  45. }